<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="http://www.cnboy.top/Forfun/Bootstrap/css/bootstrap.min.css">
    <script src="http://www.cnboy.top/Forfun/Bootstrap/js/jquery.min.js"></script>
    <script src="http://www.cnboy.top/Forfun/Bootstrap/js/popper.min.js"></script>
    <script src="http://www.cnboy.top/Forfun/Bootstrap/js/bootstrap.min.js"></script>
    <title>评论列表</title>
</head>
<style>
    .table{
        word-break:break-all; word-wrap:break-all;
        /*    表格换行   */
    }
</style>
<body>
<div class="container">
    <div class="table-responsive">
        <table class="table table-bordered tab-hover">
            <thead>
            <tr>
                <th>序号</th>
                <th>日期</th>
                <th>昵称</th>
                <th>邮箱</th>
                <th>评论</th>
                <th>IP</th>
                <th>操作</th>
            </tr>
            <tbody>
        <?php foreach ($comms as $c ) {?>
        <tr>
            <td><?php echo $c['comment_id']; ?></td>
            <td><?php echo date('Y/m/d',$c['pubtime']); ?></td>
            <td><a href="#"><?php echo $c['nick']; ?></a></td>
            <td><?php echo $c['email']; ?></td>
            <td><span><?php echo $c['content']; ?></span></td>
            <td><span><?php echo long2ip($c['ip']); ?></span></td>
            <td>
                <a href="commdel.php?comment_id=<?php echo $c['comment_id'];?>">删除</a>
            </td>
        </tr>
        <?php } ?>
            </tbody>
        </table>
        <div class="container text-center">
            <div class="btn-group btn-group-lg">
                <?php foreach($page as $k=>$v){ ?>
                <a class="btn btn-info" href="commlist.php?<?php echo $v;?>"><?php echo $k;?></a>
                <?php } ?>
            </div>
        </div>
    </div>
</div>
</body>
</html>